package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.LOAN_APPLICATION;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;


public class LoanApplicationApi implements IRequestApi, IRequestType {

    private ReqLoanApplicationBean overripe;

    public LoanApplicationApi(ReqLoanApplicationBean bean) {
        overripe = bean;
    }

    @NonNull
    @Override
    public String getApi() {
        return LOAN_APPLICATION;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }


    public static final class ReqLoanApplicationBean {

        private ArrayList<String> pyjamas;
        private String userSelfBankId;

        public ReqLoanApplicationBean(ArrayList<String> pyjamas, String userSelfBankId) {
            this.pyjamas = pyjamas;
            this.userSelfBankId = userSelfBankId;
        }
    }

    public static final class ResLoanApplicationBean {

        private String uniformitarian;
        private String beastly;

        public String getUniformitarian() {
            return uniformitarian;
        }

        public String getBeastly() {
            return beastly;
        }
    }


}

